using System;
using System.Collections.Generic;
using System.Configuration;

namespace DogBite.Dachshund.Configuration
{
    public class NavigationListCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new NavigationList();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((NavigationList)element).Name;
        }

        public NavigationList this[string name]
        {
            get { return (NavigationList)this.BaseGet(name); }
        }
    }
}
